package com.system.entity;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 角色和权限关联表
 * </p>
 *
 * @author zfc
 * @since 2023-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RolePermission对象", description="角色和权限关联表")
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色表（角色ID）")
    @NotNull(message = "角色编号不能为空")
    private Integer roleId;

    @ApiModelProperty(value = "权限表（权限ID）")
    @NotNull(message = "权限编号不能为空")
    private Integer permissionId;


}
